﻿namespace Jim.OA;

/// <summary>
/// 流程退回
/// </summary>
[Sdk("/api/workflow/paService/rejectRequest",description:"流程退回")]
public class OARejectRequestInput : OAUserRequest<SdkResponse>, ISdkCustomDic
{
    public string RequestId { get; set; }
    public string RejectToType { get; set; }
    public string RejectToNodeid { get; set; }

    public SdkDictionary Dic()
    {
        SdkDictionary dic = new SdkDictionary();
        dic.Add("requestId", RequestId);
        dynamic otherParams = new ExpandoObject();
        if (!string.IsNullOrEmpty(RejectToType)) otherParams.RejectToType = RejectToType;
        if (!string.IsNullOrEmpty(RejectToNodeid)) otherParams.RejectToNodeid = RejectToNodeid;
        dic.Add("otherParams", otherParams);
        return dic;
    }
}